<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <link rel="icon" type="image/png" href="/image/favicon.png">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>游戏平台</title>
    <style>
        /* 全局样式 */
        body {
            margin: 0;
            font-family: Arial, sans-serif;
            color: #333;
            background-image: url('/image/1.jpg'); /* 替换为你的背景图片地址 */
            background-size: cover; /* 背景图片覆盖整个页面 */
            background-position: center; /* 背景图片居中 */
            background-attachment: fixed; /* 背景图片固定 */
        }

        /* 导航栏 */
        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: rgba(51, 51, 51, 0.8); /* 半透明背景 */
            padding: 10px 20px;
            color: #fff;
        }

        .navbar .logo {
            font-size: 24px;
            font-weight: bold;
        }

        .navbar .nav-links {
            display: flex;
            flex-wrap: wrap;
        }

        .navbar .nav-links a {
            color: #fff;
            text-decoration: none;
            margin: 0 15px;
            font-size: 16px;
        }

        .navbar .nav-links a:hover {
            text-decoration: underline;
        }

        /* 游戏展示区 */
        .games {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            padding: 20px;
        }

        .game-card {
            background-color: rgba(255, 255, 255, 0.9); /* 半透明背景 */
            border: 1px solid #ddd;
            border-radius: 10px;
            margin: 10px;
            width: 200px; /* 电脑端固定宽度 */
            text-align: center;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }

        .game-card:hover {
            transform: translateY(-5px);
        }

        .game-card img {
            width: 100%;
            height: 150px;
            object-fit: cover;
            border-top-left-radius: 10px;
            border-top-right-radius: 10px;
        }

        .game-card h3 {
            font-size: 18px;
            margin: 10px 0;
        }

        .game-card p {
            font-size: 14px;
            color: #666;
            margin: 5px 0;
        }

        .game-card button {
            background-color: #007bff;
            color: #fff;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            margin-bottom: 10px;
        }

        .game-card button:hover {
            background-color: #0056b3;
        }

        /* 页脚 */
        .footer {
            background-color: rgba(51, 51, 51, 0.8); /* 半透明背景 */
            color: #fff;
            text-align: center;
            padding: 10px 0;
            position: fixed; /* 将页脚固定在页面底部 */
            bottom: 0;
            width: 100%;
        }

        .footer a {
            color: #e67e22;
            text-decoration: none;
        }

        .footer a:hover {
            text-decoration: underline;
        }

        /* 媒体查询：适应手机端 */
        @media (max-width: 600px) {
            .navbar {
                flex-direction: column;
                align-items: flex-start;
            }

            .navbar .nav-links {
                flex-direction: column;
                width: 100%;
            }

            .navbar .nav-links a {
                margin: 5px 0;
            }

            .game-card {
                width: calc(100% - 40px); /* 在手机端每行显示一个游戏 */
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <div class="navbar">
        <div class="logo">游戏平台</div>
        <div class="nav-links">
            <a href="#">首页</a>
            <a href="vedio.html">宣传片</a>
            <a href="log.html">个人主页</a>
        </div>
    </div>

    <!-- 游戏展示区 -->
    <div class="games">
        <div class="game-card">
            <img src="https://tse1-mm.cn.bing.net/th/id/OIP-C.53UC5MRiCxD-PtofF2gHbAHaHa?w=135&h=180&c=7&r=0&o=5&dpr=2&pid=1.7" alt="游戏1">
            <h3>游戏1</h3>
            <p>点击小球</p>
            <a href="game1.html">开始游戏</a>
        </div>
        <div class="game-card">
            <img src="https://tse4-mm.cn.bing.net/th/id/OIP-C.1s3Yr8sFidzBWGhDKeqBNwHaEo?w=267&h=180&c=7&r=0&o=5&dpr=2&pid=1.7" alt="游戏2">
            <h3>游戏2</h3>
            <p>太空射击</p>
            <a href="game3.html">开始游戏</a>
        </div>
        <div class="game-card">
            <img src="https://tse1-mm.cn.bing.net/th/id/OIP-C.Kk0RulTcOPo5-CaaTpmxmAHaEH?w=203&h=113&c=7&r=0&o=5&dpr=2&pid=1.7" alt="游戏3">
            <h3>游戏3</h3>
            <p>迷宫逃脱</p>
            <a href="game2.html">开始游戏</a>
        </div>
    </div>

    <!-- 页脚 -->
    <div class="footer">
        <p>&copy; 2025 Zfox游戏平台. 版权所有. <a href="#">隐私政策</a></p>
    </div>
</body>
</html>